package com.lanxiaoye.shoppingSystem.dao;

import com.lanxiaoye.shoppingSystem.entity.Goods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsMapper {
    int deleteByPrimaryKey(Integer goodsId);

    int insert(Goods record);

    int insertSelective(Goods record);

    Goods selectByPrimaryKey(Integer goodsId);

    List<Goods> selectByKeyword(String keyword);

    List<Goods> selectTopSalesEight();

    List<Goods> selectByCategoryId(Integer categoryId);

    List<Goods> selectRelatedByBrand(@Param("brand") String brand, @Param("goodsId") Integer goodsId);

    int updateByPrimaryKeySelective(Goods record);

    int updateByPrimaryKey(Goods record);
}